﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TreeSelectionPanel.ascx.cs" Inherits="Microsoft.Coral.Web.Controls.TreeSelectionPanel" %>
<div id="selector">
    <script type="text/javascript">
        var selectedControlID = "<%=selected.ClientID %>";
    </script>
    <div>
        <input id="selected" type="text" runat="server" />
    </div>
    <div id="dropDown" class="TreeView" style="display:none">
        <asp:TreeView ID="treeview" runat="server" OnSelectedNodeChanged="OnSelectedNodeChanged" 
            CollapseImageUrl="images/Tree_Icon_Close.png"
            ExpandImageUrl="images/Tree_Icon_Open.png">
            <ParentNodeStyle CssClass="ChildTitle" Width="100%" />
            <HoverNodeStyle CssClass="NodeHover" />
            <SelectedNodeStyle CssClass="NodeSelected" />
            <Nodes>
                <asp:TreeNode Text="VITAL SIGNS Close" Value="0" SelectAction="Expand">
                    <asp:TreeNode Text="Parent1" Value="1" SelectAction="Expand">
                        <asp:TreeNode Text="leaf1" Value="011"></asp:TreeNode>
                    </asp:TreeNode>
                    <asp:TreeNode Text="Parent2" Value="2" SelectAction="Expand">
                        <asp:TreeNode Text="leaf2" Value="021"></asp:TreeNode>
                    </asp:TreeNode>
                </asp:TreeNode>
            </Nodes>
            <RootNodeStyle CssClass="ParentTitle" Width="100%" />
            <NodeStyle Width="100%" />
            <LeafNodeStyle CssClass="ChildTitle" Width="100%" />
        </asp:TreeView>
    </div>
</div>